import { Component, OnInit } from '@angular/core';
import { forEach } from '@angular/router/src/utils/collection';

@Component({
  selector: 'app-homepage',
  templateUrl: './homepage.component.html',
  styleUrls: ['./homepage.component.scss']
})

export class HomepageComponent implements OnInit {
  images: any[];
  imagesProduct: any[];

  constructor() { }

  ngOnInit() {
    this.images = [];
    this.imagesProduct = [];
    this.images.push({
      source:'assets/images/galleria/1.jpg', 
      alt:'图特服务生态系统', 
      title:'图特科技'});

    this.images.push({
      source:'assets/images/galleria/2.jpg', 
      alt:'官网全面更新，打造权威供应链平台', 
      title:'官网更新'});

    this.images.push({
      source:'assets/images/galleria/3.jpg', 
      alt:'把握前沿·服务医改', 
      title:'把握前沿·服务医改  '});

    
    this.imagesProduct.push({
      source:'http://www.thothinfo.com/include/thumb.php?dir=upload/201707/1499418791.jpg&x=550&y=400',
      alt:'移动资产清查系统',
      title:'基于二维码/RFID的移动资产管理，请清查更轻松'
    });

    this.imagesProduct.push({
      source:'http://www.thothinfo.com/include/thumb.php?dir=upload/201707/1499418791.jpg&x=550&y=400',
      alt:'移动资产清查系统',
      title:'基于二维码/RFID的移动资产管理，请清查更轻松'
    });

    this.images.forEach(ele => {
      this.imagesProduct.push(ele);
    });
  }

}
